package com.xiaocg.sparse.linkedlist;

/**
 * @author xiaocg
 * 链表节点
 */
public class CustomNode {
    private int no;
    private String name;
    private CustomNode next;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNo() {
        return no;
    }

    public CustomNode getNext() {
        return next;
    }

    public void setNext(CustomNode next) {
        this.next = next;
    }

    public CustomNode() {

    }

    public CustomNode(int no, String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public String toString() {
        return "CustomNode{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}
